import request from "@/utils/request"

// 获取农产品列表
export const reqProductList = (pageNo:number,pageSize:number,sort:number,categoryId:string) => request.get<any,any>(`/product/searchProductByCategoryId?pageNo=${pageNo}&pageSize=${pageSize}&sort=${sort}&categoryId=${categoryId}`)

// 根据id获取农产品数据
export const reqProductById = (id:string) => request.get<any,any>(`/product/${id}`)